﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Runtime.Serialization;

namespace bdnt_pets_system_Entity
{
    [DataContract]
    public class Tbl_FailureTracking : INotifyPropertyChanged
    {
        Int32 id;
        [DataMember]
        public Int32 Id
        {
            get { return id; }
            set { id = value; }
        }

        DateTime? trackingDate;
        [DataMember]
        public DateTime? TrackingDate
        {
            get { return trackingDate; }
            set
            {
                trackingDate = value;
            }
        }
        DateTime? trackingEndDate;
        [DataMember]
        public DateTime? TrackingEndDate
        {
            get { return trackingEndDate; }
            set
            {
                trackingEndDate = value;
            }
        }

        string partNo;
        [DataMember]
        public string PartNo
        {
            get { return partNo; }
            set
            {
                partNo = value;
            }
        }
        string partName;
        [DataMember]
        public string PartName
        {
            get { return partName; }
            set
            {
                partName = value;
            }
        }
        string en_partName;
        [DataMember]
        public string en_PartName
        {
            get { return en_partName; }
            set
            {
                en_partName = value;
            }
        }
        //string positionNo;
        //[DataMember]
        //public string PositionNo
        //{
        //    get { return positionNo; }
        //    set
        //    {
        //        positionNo = value;
        //    }
        //}
        //string positionName;
        //[DataMember]
        //public string PositionName
        //{
        //    get { return positionName; }
        //    set
        //    {
        //        positionName = value;
        //    }
        //}

        Int32 failureId;
        [DataMember]
        public Int32 FailureId
        {
            get { return failureId; }
            set
            {
                failureId = value;
            }
        }
        string failureName;
        [DataMember]
        public string FailureName
        {
            get { return failureName; }
            set
            {
                failureName = value;
            }
        }

        string en_failureName;
        [DataMember]
        public string en_FailureName
        {
            get { return en_failureName; }
            set
            {
                en_failureName = value;
            }
        }
        Int32 teamId;
        [DataMember]
        public Int32 TeamId
        {
            get { return teamId; }
            set
            {
                teamId = value;
            }
        }

        string teamName;
        [DataMember]
        public string TeamName
        {
            get { return teamName; }
            set
            {
                teamName = value;
            }
        }

        string en_teamName;
        [DataMember]
        public string en_TeamName
        {
            get { return en_teamName; }
            set
            {
                en_teamName = value;
            }
        }

        bool status;
        [DataMember]
        public bool Status
        {
            get { return status; }
            set
            {
                status = value;
            }
        }

        string phaseNo;
        [DataMember]
        public string PhaseNo
        {
            get { return phaseNo; }
            set
            {
                phaseNo = value;
            }
        }

        string phaseName;
        [DataMember]
        public string PhaseName
        {
            get { return phaseName; }
            set
            {
                phaseName = value;
            }
        }

        string en_phaseName;
        [DataMember]
        public string en_PhaseName
        {
            get { return en_phaseName; }
            set
            {
                en_phaseName = value;
            }
        }
        string toEmpIds;
        [DataMember]
        public string ToEmpIds
        {
            get { return toEmpIds; }
            set
            {
                toEmpIds = value;
            }
        }

        string toEmpNames;
        [DataMember]
        public string ToEmpNames
        {
            get { return toEmpNames; }
            set
            {
                toEmpNames = value;
            }
        }
        Int32 failureLevel;
        [DataMember]
        public Int32 FailureLevel
        {
            get { return failureLevel; }
            set
            {
                failureLevel = value;
            }
        }

        Int32 recorderUserId;
        [DataMember]
        public Int32 RecorderUserId
        {
            get { return recorderUserId; }
            set
            {
                recorderUserId = value;
            }
        }

        DateTime? recordTime;
        [DataMember]
        public DateTime? RecordTime
        {
            get { return recordTime; }
            set
            {
                recordTime = value;
            }
        }

        string recordUserName;
        [DataMember]
        public string RecordUserName
        {
            get { return recordUserName; }
            set
            {
                recordUserName = value;
            }
        }

        string remark;
        [DataMember]
        public string Remark
        {
            get { return remark; }
            set
            {
                remark = value;
            }
        }

        Int32 fAILURETYPE;
        [DataMember]
        public Int32 FAILURETYPE
        {
            get { return fAILURETYPE; }
            set
            {
                fAILURETYPE = value;
            }
        }
        public event PropertyChangedEventHandler PropertyChanged;
        private void OnPropertyChanged(string PropName)
        {
            if (PropertyChanged != null)
            {
                this.PropertyChanged(this, new PropertyChangedEventArgs(PropName));
            }
        }
    }
}
